/*
 * RestExceptions.java
 * Copyright (c) 2014, 2019, Kiri. 
 * All rights reserved.
 */
package com.onesalt.common;

import com.onesalt.web.common.RestException;

/**
 * @author kiri
 * @date 2015年4月12日
 * @version 1.0
 */
public class ExceptionConstants {
	public static final RestException NEED_RELOGIN_EXCEPTION = new RestException(1, "用户未登录");
	public static final RestException USER_NOT_EXISTS_EXCEPTION = new RestException(2, "用户不存在");
	public static final RestException LOGIN_FAILED_EXCEPTION = new RestException(3, "登录失败");

	public static final RestException DB_ITEM_NOT_EXISTS_EXCEPTION = new RestException(100, "数据不存在");

	public static final RestException COOK_NOT_EXISTS_EXCEPTION = new RestException(101, "厨师不存在");
	public static final RestException DINER_NOT_EXISTS_EXCEPTION = new RestException(102, "食客不存在");
	public static final RestException KITCHEN_NOT_EXISTS_EXCEPTION = new RestException(201, "厨房不存在");
	public static final RestException DINNER_NOT_EXISTS_EXCEPTION = new RestException(301, "饭局不存在");
	public static final RestException ORDER_CREATE_FAILED_EXCEPTION = new RestException(401, "创建订单失败");
	public static final RestException ORDER_DINNER_DEADLINE_EXCEPTION = new RestException(402, "该饭局已截止下单");
	public static final RestException ORDER_DINNER_CANCELLED_EXCEPTION = new RestException(403, "该饭局已取消");
	public static final RestException ORDER_DINNER_SOLD_OUT_EXCEPTION = new RestException(404, "该饭局已售罄");
	public static final RestException ORDER_PAY_FAILED_EXCEPTION = new RestException(405, "付款失败");
}
